Repository navigation
fix(core): tighten component matching, diff line budget and relationship deduplication - #409
Conversation
|
Caution Review failedThe pull request is closed.
Warning Some tools did not complete. Review the errors below.
|
a2bf0da to
9ea783c
Compare
[Medium impact] The PR appears safe to merge as part of the stack, including PR #412. SummaryTightens component selection and relationship checks, enforces diff limits, and makes partial results visible.
No new unresolved findings. The earlier relationship-kind, truncation-reporting, and changed-line-counting issues are addressed. Preserving unusual local file paths after trimming depends on the parser fixes in dependent PR #412; those fixes are not in this PR. Reviews (3) · Last reviewed commit: "fix(core): address review findings on li..." · Reviewed by Greptile |
9ea783c to
491682b
Compare
- apply the line budget in the shared pipeline after skip patterns, for analyze and check; skip oversized files instead of stopping - dedupe relationships by kind only for LikeC4 (Structurizr keeps endpoint matching) - normalise excludePaths (whitespace, trailing dot) and document segment semantics - matchComponentId prefers the earliest match in the reply - dependency scan uses the medium output budget; Anthropic small back to 600 - template engine renders missing variables empty with a debug warning
- Dedup resolves a proposal's kind the same way the LikeC4 writer does, via a shared helper; an undefined kind counts as no kind - Report files dropped by the line budget on the analysis result, structured output (changeRequest.wasTruncated/truncationReason) and PR comment, for analyze and check - Count +/- lines as content after a hunk header, so removed ---- and added +++x lines count toward the budget
491682b to
5780a2c
Compare
Stacked on #408.
What changed
api-gatewayno longer selectsapiand "api. api-worker is not affected" selectsapi.maxLinesPerDiffnow drops files instead of only warning. It runs once in the shared pipeline after skip patterns, for bothanalyzeandcheck, skips oversized files and keeps smaller ones after them. The first file is always kept, its patch cut to the budget.mediumoutput size. Anthropicsmallstays 600.cloud.apino longer excludescloud.apigateway). Whitespace and a trailing.are tolerated."becomes'instead of being stripped; newlines collapse to spaces.findMissingVariableslets tests catch renamed variables in every real template.Behaviour changes
excludePathswritten as string prefixes no longer match unrelated ids.Review follow-ups
truncation.reason, structured outputwasTruncated/truncationReason(declared before but never set), and a partial-analysis note in the PR comment.----count.Checks
check:ci